<?php	
	class Template
	{		
		private $template;
		
		function __construct($title, $html)
		{
			$this->template = str_replace('{TITLE}', $title, file_get_contents("html/" . $html));
		}
		
		public function setContent($section, $content)
		{
			$this->template = str_replace($section, $content, $this->template);
		}
		
	
		public function display()
		{
			echo $this->template;
			return true;
		}
}